﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Threading.Tasks;
using CoreShop.Model;
using SqlSugar;

namespace CoreShop.Services
{
    /// <summary>
    /// 服务工厂接口
    /// </summary>
    public interface IcorecmsdiscountrulesServices
    {

        #region 重写增删改查操作===========================================================

        /// <summary>
        /// 重写异步插入方法
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        bool InsertAsync(corecmsdiscountrules entity);
        bool InsertOrUpdate(List<corecmsdiscountrules> entity);
        
        #endregion


        #region 获取缓存的所有数据==========================================================

        /// <summary>
        /// 获取缓存的所有数据
        /// </summary>
        /// <returns></returns>
        List<corecmsdiscountrules> GetCaChe();

        #endregion

        #region 重写根据条件查询数据
        /// <summary>
        ///     重写根据条件查询分页数据
        /// </summary>
        List<corecmsdiscountrules> QueryAsync(long id);
        #endregion
    }
}
